package com.lsht.system.service.impl.siwei;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author zyc
 * @date 2024/12/24 10:59
 */
@Component
public class InspectionCodeScheduler {
    // 每天0点执行
    @Scheduled(cron = "0 0 0 * * ?")
    public void resetCounter() {
        InspectionRecordGenerator.resetCounterAtMidnight();
        System.out.println("三位数编号已重置");
    }
}
